/**
 * @author hoang.pt
 * @version $Id$
 */

package homework.homework5.problem1;


/**
 * entity computer
 * @author hoang.pt
 */
public class Computer {

	private int id;
	
	private String name;
	
	private String brand;
	
	private Double price;
	
	/**
	 * constructor
	 * @param id
	 * @param name
	 * @param brand
	 * @param price
	 */
	public Computer(int id, String name, String brand, Double price) {
		this.id = id;
		this.name = name;
		this.brand = brand;
		this.price = price;
	}
	
	/**
	 * convert object to String
	 */
	public String toString() {
		
		return "Computer has id=" +id+ ", name='" +name+ "', brand='" +brand+ "', price=" +price+ "$";
	}
	
	
	
	
}
